package com.ruoyi.slope.video.camera.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.video.camera.mapper.SlopeCameraMapper;
import com.ruoyi.slope.video.camera.domain.SlopeCamera;
import com.ruoyi.slope.video.camera.service.ISlopeCameraService;

/**
 * 定点摄像头Service业务层处理
 * 
 * @author psy
 * @date 2025-05-11
 */
@Service
public class SlopeCameraServiceImpl implements ISlopeCameraService 
{
    @Autowired
    private SlopeCameraMapper slopeCameraMapper;

    public List<SlopeCamera> selectSlopeAllCamera(){
        return slopeCameraMapper.selectSlopeAllCamera();
    }

    /**
     * 查询定点摄像头
     * 
     * @param id 定点摄像头主键
     * @return 定点摄像头
     */
    @Override
    public SlopeCamera selectSlopeCameraById(Long id)
    {
        return slopeCameraMapper.selectSlopeCameraById(id);
    }

    /**
     * 查询定点摄像头列表
     * 
     * @param slopeCamera 定点摄像头
     * @return 定点摄像头
     */
    @DataScope(deptAlias = "s")
    @Override
    public List<SlopeCamera> selectSlopeCameraList(SlopeCamera slopeCamera)
    {
        return slopeCameraMapper.selectSlopeCameraList(slopeCamera);
    }

    /**
     * 新增定点摄像头
     * 
     * @param slopeCamera 定点摄像头
     * @return 结果
     */
    @Override
    public int insertSlopeCamera(SlopeCamera slopeCamera)
    {
        return slopeCameraMapper.insertSlopeCamera(slopeCamera);
    }

    /**
     * 修改定点摄像头
     * 
     * @param slopeCamera 定点摄像头
     * @return 结果
     */
    @Override
    public int updateSlopeCamera(SlopeCamera slopeCamera)
    {
        return slopeCameraMapper.updateSlopeCamera(slopeCamera);
    }

    /**
     * 批量删除定点摄像头
     * 
     * @param ids 需要删除的定点摄像头主键
     * @return 结果
     */
    @Override
    public int deleteSlopeCameraByIds(Long[] ids)
    {
        return slopeCameraMapper.deleteSlopeCameraByIds(ids);
    }

    /**
     * 删除定点摄像头信息
     * 
     * @param id 定点摄像头主键
     * @return 结果
     */
    @Override
    public int deleteSlopeCameraById(Long id)
    {
        return slopeCameraMapper.deleteSlopeCameraById(id);
    }
}
